<DOCTYPE html>
<html>
<head>
<title>Java Script Tutorial</title>
<script src="baseJavaScript.js"></script>
<style type="text/css">
table {
	width: 100%;
}

table tr td {
	width: 4%;
}

table tr td+td, table tr td+td+td {
	width: 48%;
}

table tr th, table tr td {
	border-bottom: #ccc 1px solid;
}
</style>

</head>
<body>
	<table>
		<tr>
			<th>Nr.</th>
			<th>Source</th>
			<th>Preview</th>
		</tr>
		<tr>
			<td>1.</td>
			<td>Display Possibilities:<br /> innerHTML
			</td>
			<td><p id="demo">Pragraph</p>
				<button onclick="baseFunction1()">Try it!</button></td>
		</tr>
		<tr>
			<td>2.</td>
			<td>Display Possibilities:<br /> window.alert()
			</td>
			<td><button onclick="baseFunction2()">Try it!</button></td>
		</tr>
		<tr>
			<td>3.</td>
			<td>Display Possibilities:<br /> document.write()
			</td>
			<td><button onclick="baseFunction3()">Try it!</button></td>
		</tr>
		<tr>
			<td>4.</td>
			<td>Display Possibilities:<br /> console.log()
			</td>
			<td><button onclick="baseFunction4()">Try it!</button></td>
		</tr>
		<tr>
			<td>5.</td>
			<td>In a programming language, computer instructions are called
				statements. <br /> Numbers are written with or without decimals:
				10.50 , 1001 <br /> Strings are text, written within double or
				single quotes:"John Doe", 'John Doe' <br /> Expressions can also
				represent fixed values: 5 + 6, 5 * 10 <br /> Variables: var x; x =
				6; <br /> Operators: var x = 5; var y = 6; <br /> arithmetic
				operators ( + - * / ): (5 + 6) * 10 <br /> Comments: Code after
				double slashes // or between /* and */ is treated as a comment. <br />
				Case sensitive: The variables lastName and lastname, are two
				different variables.<br />JavaScript ignores multiple spaces. You
				can add white space to your script to make it more readable.

			</td>
			<td></td>
		</tr>
		<tr>
			<td>6.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>7.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>9.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>10.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>11.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>12.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>13.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>14.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>15.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>16.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>17.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>18.</td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>19.</td>
			<td></td>
			<td></td>
		</tr>
	</table>

	<table>
		<tr>
			<th colspan=2>JavaScript Keywords</th>
		</tr>
		<tr>
			<td>Keyword</td>
			<td>Description</td>
		</tr>
		<tr>
			<td>break</td>
			<td>Terminates a switch or a loop</td>
		</tr>
		<tr>
			<td>catch</td>
			<td>Marks the block of statements to be executed when an error
				occurs in a try block</td>
		</tr>
		<tr>
			<td>continue</td>
			<td>Jumps out of a loop and starts at the top</td>
		</tr>
		<tr>
			<td>debugger</td>
			<td>Stops the execution of JavaScript, and calls (if available)
				the debugging function</td>
		</tr>
		<tr>
			<td>do ... while</td>
			<td>Executes a block of statements, and repeats the block, while
				a condition is true</td>
		</tr>
		<tr>
			<td>for</td>
			<td>Marks a block of statements to be executed, as long as a
				condition is true</td>
		</tr>
		<tr>
			<td>for ... in</td>
			<td>Marks a block of statements to be executed, for each element
				of an object (or array)</td>
		</tr>
		<tr>
			<td>function</td>
			<td>Declares a function</td>
		</tr>
		<tr>
			<td>if ... else</td>
			<td>Marks a block of statements to be executed, depending on a
				condition</td>
		</tr>
		<tr>
			<td>return</td>
			<td>Exits a function</td>
		</tr>
		<tr>
			<td>switch</td>
			<td>Marks a block of statements to be executed, depending on
				different cases</td>
		</tr>
		<tr>
			<td>throw</td>
			<td>Throws (generates) an error</td>
		</tr>
		<tr>
			<td>try</td>
			<td>Implements error handling to a block of statements</td>
		</tr>
		<tr>
			<td>var</td>
			<td>Declares a variable</td>
		</tr>
		<tr>
			<td>while</td>
			<td>Marks a block of statements to be executed, while a
				condition is true</td>
		</tr>
	</table>
</body>
</html>